package com.jddup.program.dao.handler;


import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * 更新
 * Created by ZZB on 2017/9/24.
 */
public interface IUpdateHandler {
    int updateBySQL(String sql, Connection connection) ;

    int updateBySQL(String sql, Object[] objects, Connection connection) ;

    int update(Object o, Connection connection) ;

    int update(Object o, String tableName, Connection connection) ;

    int[] updateList(List<?> objects, Connection connection) ;

    int[] updateList(List<?> objects, String tableName, Connection connection) ;

    int updateField(Object pk, Class<?> tClass, String updateField, Object value, Connection connection) ;

    int updateField(Object pk, String tableName, Class<?> tClass, String updateField, Object value, Connection connection) ;

    int updateListField(List<?> pk, Class<?> tClass, String updateField, Object value, Connection connection) ;

    int updateListField(List<?> pk, String tableName, Class<?> tClass, String updateField, Object value, Connection connection) ;
}
